<template>
  <div>
    <form-designer ref="formDesigner" v-model="form.fdForm"></form-designer>
  </div>

</template>
<script>
import FormDesigner from "../../../components/formDesigner/formDesigner.vue";

import {
  getForm,
} from "@/api/workflow/form";
export default {
  components: { FormDesigner },
  props: [],
  data() {
    return {
      form: { fdForm: "" },
    };
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {
    const that = this;
    const formId = that.$route.query && that.$route.query.formId;
    if (formId) {
      getForm(formId).then((res) => {
         //console.log(res);
        that.form.fdForm = res.data.content;
    
      });
    }
  },
  methods: {},
};
</script>
<style lang="scss">
body {
  margin: 0; /* 如果页面出现垂直滚动条，则加入此行CSS以消除之 */
}
</style>